ComponentOne Basic Library for UWP
CreateSelector<T,X>(String) Method

C1.UWP Assembly > C1.Xaml Namespace > C1PropertyPathHelper Class > CreateSelector Method : CreateSelector<T,X>(String) Method
Type of the element where the property path will be accessed.
Type of the result after evaluated the full property path.
The path.
Creates a Function to evaluate a given property path on a given object. For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
Syntax
'Declaration
 
Public Overloads Shared Function CreateSelector
    (Of T,X)( _
   ByVal path As System.String _
) As System.Func(Of T,X)
public static System.Func<T,X> CreateSelector<T,X>( 
   System.string path
)

Parameters

path
The path.

Type Parameters

T
Type of the element where the property path will be accessed.
X
Type of the result after evaluated the full property path.
Example
For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
See Also

Reference

C1PropertyPathHelper Class
C1PropertyPathHelper Members
Overload List